package com.shijunhao.graduation.service.system;

import com.shijunhao.graduation.domain.entity.SystemDict;
import com.shijunhao.graduation.domain.entity.SystemDictItem;
import com.shijunhao.graduation.service.system.BaseService;

import java.util.Collection;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author shijunhao
 * @since 2022-03-04
 */
public interface ISystemDictItemService extends BaseService<SystemDictItem> {

    /**
     * @param dictId: 字典id
     * @return: 字典项列表
     * @author: shijunhao
     * @date: 2022/3/4 17:28
     * @description:
     */
    List<SystemDictItem> loadByDictId(Long dictId);

    /**
     * @param dictId: 字典id
     * @param value: 字典项值
     * @return: 字典项
     * @author: shijunhao
     * @date: 2022/3/4 17:30
     * @description:
     */
    SystemDictItem loadByDictIdValue(Long dictId,Integer value);
    SystemDictItem loadByDictIdLabel(Long dictId,String label);

    /**
     * @param dictId: 字典id
     * @return: boolean
     * @author: shijunhao
     * @date: 2022/3/4 17:50
     * @description:
     */
    boolean deleteByDictId(Long dictId);
    boolean deleteByDictIds(Collection<Long> dictIds);
}
